Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JavaTM 2 Platform Std. Ed. v1.4.0
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
java.lang.IllegalStateException

Packages that use IllegalStateException
java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images.
java.awt.dnd | Drag and Drop is a direct manipulation gesture found in many Graphical User Interface systems that provides a mechanism to transfer information between two entities logically associated with presentation elements in the GUI.
java.nio | Defines buffers, which are containers for data, and provides an overview of the other NIO packages.
java.nio.channels | Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations.
javax.crypto | Provides the classes and interfaces for cryptographic operations.

Uses of IllegalStateException in java.awt

Subclasses of IllegalStateException in java.awt
`class` | `IllegalComponentStateException` Signals that an AWT component is not in an appropriate state for the requested operation.

Uses of IllegalStateException in java.awt.dnd

Subclasses of IllegalStateException in java.awt.dnd
`class` | `InvalidDnDOperationException` This exception is thrown by various methods in the java.awt.dnd package.

Uses of IllegalStateException in java.nio

Subclasses of IllegalStateException in java.nio
`class` | `InvalidMarkException` Unchecked exception thrown when an attempt is made to reset a buffer when its mark is not defined.

Uses of IllegalStateException in java.nio.channels

Subclasses of IllegalStateException in java.nio.channels
`class` | `AlreadyConnectedException` Unchecked exception thrown when an attempt is made to connect a `SocketChannel` that is already connected.
`class` | `CancelledKeyException` Unchecked exception thrown when an attempt is made to use a selection key that is no longer valid.
`class` | `ClosedSelectorException` Unchecked exception thrown when an attempt is made to invoke an I/O operation upon a closed selector.
`class` | `ConnectionPendingException` Unchecked exception thrown when an attempt is made to connect a `SocketChannel` for which a non-blocking connection operation is already in progress.
`class` | `IllegalBlockingModeException` Unchecked exception thrown when a blocking-mode-specific operation is invoked upon a channel in the incorrect blocking mode.
`class` | `NoConnectionPendingException` Unchecked exception thrown when the `finishConnect` method of a `SocketChannel` is invoked without first successfully invoking its `connect` method.
`class` | `NonReadableChannelException` Unchecked exception thrown when an attempt is made to read from a channel that was not originally opened for reading.
`class` | `NonWritableChannelException` Unchecked exception thrown when an attempt is made to write to a channel that was not originally opened for writing.
`class` | `NotYetBoundException` Unchecked exception thrown when an attempt is made to invoke an I/O operation upon a server socket channel that is not yet bound.
`class` | `NotYetConnectedException` Unchecked exception thrown when an attempt is made to invoke an I/O operation upon a socket channel that is not yet connected.
`class` | `OverlappingFileLockException` Unchecked exception thrown when an attempt is made to acquire a lock on a region of a file that overlaps a region already locked by the same Java virtual machine, or when another thread is already waiting to lock an overlapping region of the same file.

Uses of IllegalStateException in javax.crypto

Methods in javax.crypto that throw IllegalStateException
`void` | `Mac.update(byte input)` Processes the given byte.
`void` | `Mac.update(byte[] input)` Processes the given array of bytes.
`void` | `Mac.update(byte[] input, int offset, int len)` Processes the first `len` bytes in `input`, starting at `offset` inclusive.
`byte[]` | `Mac.doFinal()` Finishes the MAC operation.
`void` | `Mac.doFinal(byte[] output, int outOffset)` Finishes the MAC operation.
`byte[]` | `Mac.doFinal(byte[] input)` Processes the given array of bytes and finishes the MAC operation.
`protected abstract Key` | `KeyAgreementSpi.engineDoPhase(Key key, boolean lastPhase)` Executes the next phase of this key agreement with the given key that was received from one of the other parties involved in this key agreement.
`protected abstract byte[]` | `KeyAgreementSpi.engineGenerateSecret()` Generates the shared secret and returns it in a new buffer.
`protected abstract int` | `KeyAgreementSpi.engineGenerateSecret(byte[] sharedSecret, int offset)` Generates the shared secret, and places it into the buffer `sharedSecret`, beginning at `offset` inclusive.
`protected abstract SecretKey` | `KeyAgreementSpi.engineGenerateSecret(String algorithm)` Creates the shared secret and returns it as a secret key object of the requested algorithm type.
`Key` | `KeyAgreement.doPhase(Key key, boolean lastPhase)` Executes the next phase of this key agreement with the given key that was received from one of the other parties involved in this key agreement.
`byte[]` | `KeyAgreement.generateSecret()` Generates the shared secret and returns it in a new buffer.
`int` | `KeyAgreement.generateSecret(byte[] sharedSecret, int offset)` Generates the shared secret, and places it into the buffer `sharedSecret`, beginning at `offset` inclusive.
`SecretKey` | `KeyAgreement.generateSecret(String algorithm)` Creates the shared secret and returns it as a `SecretKey` object of the specified algorithm.
`int` | `ExemptionMechanism.getOutputSize(int inputLen)` Returns the length in bytes that an output buffer would need to be in order to hold the result of the next `genExemptionBlob` operation, given the input length `inputLen` (in bytes).
`byte[]` | `ExemptionMechanism.genExemptionBlob()` Generates the exemption mechanism key blob.
`int` | `ExemptionMechanism.genExemptionBlob(byte[] output)` Generates the exemption mechanism key blob, and stores the result in the `output` buffer.
`int` | `ExemptionMechanism.genExemptionBlob(byte[] output, int outputOffset)` Generates the exemption mechanism key blob, and stores the result in the `output` buffer, starting at `outputOffset` inclusive.
`int` | `Cipher.getOutputSize(int inputLen)` Returns the length in bytes that an output buffer would need to be in order to hold the result of the next `update` or `doFinal` operation, given the input length `inputLen` (in bytes).
`byte[]` | `Cipher.update(byte[] input)` Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.
`byte[]` | `Cipher.update(byte[] input, int inputOffset, int inputLen)` Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.
`int` | `Cipher.update(byte[] input, int inputOffset, int inputLen, byte[] output)` Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.
`int` | `Cipher.update(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)` Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.
`byte[]` | `Cipher.doFinal()` Finishes a multiple-part encryption or decryption operation, depending on how this cipher was initialized.
`int` | `Cipher.doFinal(byte[] output, int outputOffset)` Finishes a multiple-part encryption or decryption operation, depending on how this cipher was initialized.
`byte[]` | `Cipher.doFinal(byte[] input)` Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.
`byte[]` | `Cipher.doFinal(byte[] input, int inputOffset, int inputLen)` Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.
`int` | `Cipher.doFinal(byte[] input, int inputOffset, int inputLen, byte[] output)` Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.
`int` | `Cipher.doFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)` Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.
`byte[]` | `Cipher.wrap(Key key)` Wrap a key.
`Key` | `Cipher.unwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType)` Unwrap a previously wrapped key.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JavaTM 2 Platform Std. Ed. v1.4.0
PREV NEXT | FRAMES NO FRAMES

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.